package actiontiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// ActionStore 商店表
type ActionStore struct {
	Id                 int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	No                 int64          `json:"no" gorm:"column:no;type:bigint;default:0;not null;comment:元素编号"`
	ElementNumber      int64          `json:"elementNumber" gorm:"column:element_number;type:int;default:0;not null;comment:散件数量"`
	Duration           int64          `json:"duration" gorm:"column:duration;type:int;default:0;not null;comment:可以垢面多少时长小时为单位"`
	OldNeedMoneyNumber int64          `json:"oldNeedMoneyNumber" gorm:"column:old_need_money_number;type:int;default:0;not null;comment:原件需要货币数量"`
	NeedMoneyNumber    int64          `json:"needMoneyNumber" gorm:"column:need_money_number;type:int;default:0;not null;comment:活动价需要货币数量"`
	Status             int            `json:"status" gorm:"column:status;type:tinyint;default:0;not null;comment:是否上架0否 1是"`
	CreatedAt          time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt          time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt          gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
	IsUse              int64          `gorm:"-" json:"isUse"`
}
